<template>
  <div class="issue">
    <div class="title">
      <span></span>
      <h3>常见问题</h3>
    </div>
    <ul class="content">
      <li v-for="item in issue" :key="item.id">
        <h3>{{ item.question }}</h3>
        <p>{{ item.answer }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ['issue']
}
</script>

<style lang='less' scoped>
.issue {
  width: 100%;
  background-color: #fff;
  margin-top: 0.05rem;
  .title {
    width: 100%;
    height: 0.4rem;
    font-size: 0.16rem;
    text-align: center;
    line-height: 0.4rem;
    position: relative;
    h3 {
      width: 30%;
      background-color: #fff;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      margin: auto;
    }
    span {
      width: 50%;
      height: 0.03rem;
      background-color: #ccc;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      margin: auto;
    }
  }
}
.content {
  list-style: none;
  li {
    width: 95%;
    h3 {
      padding-left: 0.2rem;
      height: 0.3rem;
      line-height: 0.3rem;
      font-size: 0.16rem;
      position: relative;
      padding-right: 0.1rem;
      &:before {
        content: "";
        width: 0.05rem;
        height: 0.05rem;
        background-color: darkred;
        border-radius: 50%;
        position: absolute;
        left: 0.08rem;
        top: 50%;
        margin-top: -0.02rem;
      }
    }
    p {
      width: 95%;
      padding-right: 0.1rem;
      padding-left: 0.2rem;
      color: #666;
    }
  }
}
</style>
